package top.pengdev.esoffice.common.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import top.pengdev.esoffice.common.model.Pager;

/**
 * @author pengdev
 * @description
 * @date 2020-04-30 16:42
 **/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ResultData {
    private Integer code;
    private String msg;
    private Object data;
    private Pager pager;

    public ResultData(){}
    public ResultData(Integer code, String msg, Object data, Pager pager){
        this.code = code;
        this.msg = msg;
        this.data = data;
        this.pager = pager;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Pager getPager() {
        return pager;
    }

    public void setPager(Pager pager) {
        this.pager = pager;
    }
}
